package com.umakr.ax.security.model.vo;

import com.umakr.ax.security.model.User;

/**
 * @author gx
 * @since 2017/5/22
 */
public class UserVO {
    Long userid;
    String username;
    String password;
    String empid;
    String empname;
    Integer status;
    String description;
    Integer deptId;
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmpid() {
        return empid;
    }

    public void setEmpid(String empid) {
        this.empid = empid;
    }

    public String getEmpname() {
        return empname;
    }

    public void setEmpname(String empname) {
        this.empname = empname;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public User toUser(){
        User user = new User();
        user.setAccount(this.getUsername());
        user.setPassword(this.getPassword());
        user.setDeptId(this.getDeptId());
        user.setRemark(this.getDescription());
        user.setStatus(this.getStatus());
        user.setId(this.getUserid());
        return user;
    }


    @Override
    public String toString() {
        return "UserVO{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", empid='" + empid + '\'' +
                ", empname='" + empname + '\'' +
                ", status=" + status +
                ", description='" + description + '\'' +
                ", deptId=" + deptId +
                '}';
    }
}
